<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Register.aspx.cs" Inherits="Register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <p style="text-align: left; margin-left: 100px;">
        <b>Register</b></p>
<p style="text-align: left; margin-left: 100px;">
        <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
            <asp:View ID="View1" runat="server">
                <b>Step 1.</b><br />
                Username :&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                    Display="Dynamic" ErrorMessage="*" ValidationGroup="step1"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox1"
                    ErrorMessage="too short" ValidationExpression="^.{5,}$" 
                    ValidationGroup="step1"></asp:RegularExpressionValidator>
                <br />
                Password :&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
                    Display="Dynamic" ErrorMessage="*" ValidationGroup="step1"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="TextBox2"
                    ErrorMessage="too short" ValidationExpression="^.{5,}$" 
                    ValidationGroup="step1"></asp:RegularExpressionValidator>
                <br />
                Confirm Password :
                <asp:TextBox ID="TextBox3" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox3"
                    Display="Dynamic" ErrorMessage="*" ValidationGroup="step1"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox2"
                    ControlToValidate="TextBox3" ErrorMessage="Please check again" 
                    ValidationGroup="step1"></asp:CompareValidator>
                <br />
                Email :&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox4"
                    Display="Dynamic" ErrorMessage="*" ValidationGroup="step1"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox4"
                    ErrorMessage="invalid email address" 
                    ValidationExpression="^[\w\.=-]+@[\w\.-]+\.[\w]{2,}$" 
                    ValidationGroup="step1"></asp:RegularExpressionValidator>
                
                    <br />
                <asp:Label ID="lblWarn" runat="server" ForeColor="Red"></asp:Label>
                
                    <br />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                
                    <asp:Button ID="Button1" runat="server" Text="Continue" 
                    onclick="Button1_Click" ValidationGroup="step1" />
               
            </asp:View>
            <asp:View ID="View2" runat="server">
                <b>Step 2.</b><br />
                Firstname :
                <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="TextBox5" Display="Dynamic" ErrorMessage="*" 
                    ValidationGroup="step2"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                    ControlToValidate="TextBox5" ErrorMessage="too short" 
                    ValidationExpression="^.{2,}$" ValidationGroup="step2"></asp:RegularExpressionValidator>
                <br />
                LastName :
                <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="TextBox6" Display="Dynamic" ErrorMessage="*" 
                    ValidationGroup="step2"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                    ControlToValidate="TextBox6" ErrorMessage="too short" 
                    ValidationExpression="^.{2,}$" ValidationGroup="step2"></asp:RegularExpressionValidator>
                <br />
                Address :
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ControlToValidate="TextBox7" Display="Dynamic" ErrorMessage="*" 
                    ValidationGroup="step2"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                    ControlToValidate="TextBox7" ErrorMessage="too short" 
                    ValidationExpression="^.{5,}$" ValidationGroup="step2"></asp:RegularExpressionValidator>
                <br />
                <asp:TextBox ID="TextBox7" runat="server" TextMode="MultiLine" Rows="3" 
                    Width="400px"></asp:TextBox>
                <br />
                Phone number :<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="TextBox8" Display="Dynamic" ErrorMessage="*" 
                    ValidationGroup="step2"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                    ControlToValidate="TextBox8" ErrorMessage="too short" 
                    ValidationExpression="^\d{5,}$" ValidationGroup="step2"></asp:RegularExpressionValidator>
                <br />
                <asp:Button ID="Button2" runat="server" Text="Back" onclick="Button2_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button3" runat="server" Text="Continue" 
                    ValidationGroup="step2" onclick="Button3_Click" />
            </asp:View>
            <asp:View ID="View3" runat="server">
                <b>Step 3.<br />
                </b>Choose your bank
                <asp:DropDownList ID="DropDownList1" runat="server">
                </asp:DropDownList>
                <br />
                <asp:Button ID="Button4" runat="server" onclick="Button4_Click" Text="Back" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button5" runat="server" onclick="Button5_Click" Text="Register" 
                    ValidationGroup="step2" />
            </asp:View>
            <asp:View ID="View4" runat="server">
            Register Completed
            </asp:View>
        </asp:MultiView>
    </p>
</asp:Content>
